<?php /*a:2:{s:70:"C:\WebProject\nanxun-wechat-cms\application\admin\view\user\login.html";i:1552558989;s:77:"C:\WebProject\nanxun-wechat-cms\application\admin\view\layout\scriptload.html";i:1552554969;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>南讯公众号管理后台登陆</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="/../static/bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="/../static/bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/../static/bower_components/Ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="/../static/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="/../static/dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="/../static/bower_components/morris.js/morris.css">
<link rel="stylesheet" href="/../static/bower_components/jvectormap/jquery-jvectormap.css">
<link rel="stylesheet" href="/../static/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="/../static/bower_components/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="/../static/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="/../static/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="/../static/bower_components/select2/dist/css/select2.min.css">
<link rel="stylesheet" href="/../static/bower_components/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="/../static/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="/../static/plugins/timepicker/bootstrap-timepicker.min.css">
<script src="/../static/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/../static/bower_components/jquery-ui/jquery-ui.min.js"></script>
<script src="/../static/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="/../static/bower_components/raphael/raphael.min.js"></script>
<script src="/../static/bower_components/morris.js/morris.min.js"></script>
<script src="/../static/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<script src="/../static/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="/../static/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="/../static/bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<script src="/../static/bower_components/moment/min/moment.min.js"></script>
<script src="/../static/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="/../static/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="/../static/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="/../static/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="/../static/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="/../static/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="/../static/bower_components/fastclick/lib/fastclick.js"></script>
<script src="/../static/dist/js/adminlte.min.js"></script>
<script src="/../static/bower_components/select2/dist/js/select2.full.min.js"></script>
<script src="/../static/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="/../static/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="/../static/plugins/timepicker/bootstrap-timepicker.min.js"></script>
<script src="/../static/plugins/iCheck/icheck.min.js"></script>
<link rel="stylesheet" href="/../static/plugins/iCheck/all.css">
<!--引入layui-->
<link rel="stylesheet" href="/../static/layui/css/layui.css">
<script src="/../static/layui/layui.js"></script>
<script src="/../static/tencent/tencent.js"></script>
<script src="/../static/layui/commjslib-v2.0.1.js"></script>
<script src="/../static/layui/city-picker/city-picker.data.js"></script>
<link href="/../static/layui/city-picker/city-picker.css" rel="stylesheet" />
<!--引入vue-->
<script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
<!--<script src="https://cdn.staticfile.org/vue/2.5.17/vue.min.js"></script>-->
<!--引入饿了么组件element-->
<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.4.11/theme-chalk/index.css">
<script src="https://cdn.staticfile.org/element-ui/2.4.11/index.js"></script>
<!--引入图片上传-->
<link rel="stylesheet" href="/../static/html5upload/control/css/zyUpload.css" type="text/css">
<script src="/../static/html5upload/core/zyFile.js"></script>
<script src="/../static/html5upload/control/js/zyUpload.js"></script>
<script src="/../static/html5upload/core/jq22.js"></script>
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
    <style>
        body{
            background-image: url("/../static/img/bg_login.jpg");
        }
        .contianer{
            width:450px;
            height: 460px;
            margin: 0 auto;
            background: rgba(137,137,137,0.5);

        }
        .logo{
            width: 100%;
            height: 250px;
        }
        .logo-name{
            width: 100%;
            height: 200px;
            line-height: 200px;
            font-weight: bold;
            text-align: center;
            font-size: 180px;
            color: #e6e6e6;
        }
        .logo-label{
            width: 100%;
            color: #676a6c;
            font-weight: bold;
            text-align: center;
        }
        .input-login{
            width: 100%;
            text-align: center;
        }
        .input-pwd{
            width: 100%;
            text-align: center;
            margin-top: 15px;
        }
        .input-login-style{
            width: 300px;
            height: 35px;
            font-size: 14px;
            border: 1px solid #e5e6e7;
            padding-left: 10px;
        }
        .input-btn-style{
            width: 300px;
            height: 35px;
            border: 0px;
            background: #1ab394;
            color: #ffffff;
        }
        .footer{
            width: 100%;
            height: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .footer-list{
            color: #00bfff;
            margin-left: 15px;
            float: left;
        }
    </style>
</head>
<body>
<div style="width: 100%;height: 150px;"></div>
    <div class="contianer">
        <div class="logo">
            <div class="logo-name">NX</div>
            <div class="logo-label">欢迎使用 南讯管理后台</div>
        </div>
        <div class="input-login">
            <input type="text" class="input-login-style" name="login" id="login" placeholder="用户名">
        </div>
        <div class="input-pwd">
            <input type="password" class="input-login-style" name="password" id="password" placeholder="密码">
        </div>
        <div class="input-pwd">
            <input type="submit" class="input-btn-style" onclick="post()" value="登录">
        </div>
        <div class="footer">
            <div class="footer-list">人才第一</div>
            <div class="footer-list">不断创新</div>
            <div class="footer-list">钻研进取</div>
            <div class="footer-list">高效执行</div>
            <div class="footer-list">追求完美</div>
        </div>
    </div>
</body>
<script>
    function post() {
        var _login = $('#login').val();
        var _pwd = $('#password').val();
        if(_login === ''){
            layerAlert('请输入用户名');
            return false;
        }
        if(_pwd === ''){
            layerAlert('请输入密码');
            return false;
        }
        $.ajax({
            type: 'post',
            url: '<?php echo url("User/login"); ?>',
            data: {username:_login,password:_pwd},
            success:function(res){
                if(res.msg === 'ok'){
                    layerAlert('登录成功',function () {
                        window.location.href='<?php echo url("admin/adminindex/adminindex"); ?>';
                    });
                }else{
                    layerAlert('用户名或密码错误！');
                }
            }
        })
    }
</script>
</html>